import axios from '@/utils/http'

/**
 * 获取导航
 */
export const getApiBaseCateList = (params) => axios.get('/api/Base/getCateList', params)

/**
 * 发送验证码
 */
export const postApiUserSendSms = (params) => axios.post('/api/User/sendSms', params)
/**
 * 登录注册
 */
export const postApiUserLogin = (params) => axios.post('/api/User/login', params)

/**
 * 获取个人信息
 */
export const getApiBaseUserInfo = (params) => axios.get('/api/User/getUserInfo', params)


/**
 * 获取筛选项
 */
export const getApiBaseOptionList = (params) => axios.get('/api/Base/getOptionList', params)

/**
 * 获取首页banner
 */
export const getApiBaseBannerList = (params) => axios.get('/api/Base/getBannerList', params)


/**
 * 获取首页核心商圈
 */
export const getApiBaseIndexBusinessDistrict = (params) => axios.get('/api/Base/getIndexBusinessDistrict', params)

/**
 * 获取文章分类
 */
export const getApiBaseArticleCateList = (params) => axios.get('/api/Base/getArticleCateList', params)

/**
 * 获取首页新闻
 */
export const getApiBaseArticleList = (params) => axios.get('/api/Base/getArticleList', params)

/**
 * 获取新闻详情
 */
export const getApiBaseArticleInfo = (params) => axios.get('/api/Base/getArticleInfo', params)

/**
 * 获取楼盘
 */
export const getApiBaseBuildList = (params) => axios.get('/api/Base/getBuildList', params)

/**
 * 获取房源列表
 */
export const getApiBaseHouseList = (params) => axios.post('/api/House/getHouseList', params)

/**
 * 获取房源详情
 */
export const getApiBaseHouseInfo = (params) => axios.post('/api/House/getHouseInfo', params)

/**
 * 获取收藏列表
 */
export const getApiCollectList = (params) => axios.get('/api/User/getCollectList', params)

/**
 * 获取浏览记录列表
 */
export const getApiHistoryList = (params) => axios.get('/api/User/getHistoryList', params)

/**
 * 获取我的投放列表
 */
export const getApiPutHouseList = (params) => axios.get('/api/User/getPutHouseList', params)

/**
* 获取浏览记录列表
*/
export const getApiEntrustList = (params) => axios.get('/api/User/getEntrustList', params)

/**
 * 首页获取统计数据
 */
export const getApiStatisticalData = (params) => axios.get('/api/Base/getStatisticalData', params)

/**
 * 获取楼盘详情
 */
export const getApiBuildInfo = (params) => axios.get('/api/Base/getBuildInfo', params)

/**
 * 首页获取核心商圈
 */
export const getApiRegionList = (params) => axios.get('/api/Base/getRegionList', params)

/**
* 首页获取大楼盘 取第一个 在租房源取整个
*/
export const getApiBuildList = (params) => axios.get('/api/Base/getBuildList', params)

/**
* 获取页脚配置
*/
export const getApiSetting = (params) => axios.get('/api/Base/getSetting', params)

/**
 * 委托看房
 */
export const postApiHouseEntrustLookHouse = (params) => axios.post('/api/House/entrustLookHouse', params)

/**
 * 投放房源
 */
export const postApiHousePutHouse = (params) => axios.post('/api/House/putHouse', params)

/**
 * 收藏房源
 */
export const postApiHouseCollectHouse = (params) => axios.post('/api/House/collectHouse', params)

/**
* 获取委托人数
*/
export const getApiEntrustNumber = (params) => axios.get('/api/House/getEntrustNumber', params)

